<style>
    .input-row{
        background-color: #EDF4FC;
    }
    .input-row:hover{
        background-color: #DFEAF5;
    }
</style>
<div class="fcontent">
    <div class="breadcrum">
        <p>
            <a href="{$config->site_url('public/penilaian')}">Penilaian Dosen</a><span></span>
            <a href="{$config->site_url('public/penilaian')}">Daftar Kelas</a><span></span>
            <small>Input Penilaian</small>
        </p>
        <div class="clear"></div>
    </div>
    <!-- notification template -->
    {include file="base/templates/notification.html"}
    <!-- end of notification template-->
    <form action="{$config->site_url('public/penilaian/input_proses')}" method="post">
        <input type="hidden" name="kelas_detail_kd" value="{$rs_kelas.kelas_detail_kd}" />
        <input type="hidden" name="tahun" value="{$rs_kelas.tahun}" />
        <input type="hidden" name="semester" value="{$rs_kelas.semester}" />
        <input type="hidden" name="dosen_kd" value="{$rs_kelas.dosen_kd}" />
        <table class="table-input" width="100%">
            <tr class="headrow">
                <th colspan="4">Data Mahasiswa</th>
            </tr>
            <tr>
                <td width="20%">Nomor Induk Mahasiswa</td>
                <td width="30%">
                    <input type="text" name="nomor_nim" size="20" maxlength="20" />
                    <em>* wajib diisi</em>
                </td>
                <td width="20%"></td>
                <td width="30%"></td>
            </tr>
            <tr class="headrow">
                <th colspan="4">Data Kelas</th>
            </tr>
            <tr>
                <td>Nama Kelas</td>
                <td>{$rs_kelas.kelas_nm|default:''}</td>
                <td>Dosen</td>
                <td>{$rs_kelas.nama_lengkap|default:''}, {$rs_kelas.dosen_gelar|default:''}</td>
            </tr>
            <tr>
                <td>Mata Kuliah</td>
                <td>{$rs_kelas.makul_nm|default:''}</td>
                <td>Tanggal Perkuliahan</td>
                <td>{$dtm->get_full_date($rs_kelas.kelas_tgl)|upper|default:''}</td>
            </tr>
            <tr>
                <td>Jurusan</td>
                <td>{$rs_kelas.jurusan_nm|default:''}</td>
                <td>Materi Kuliah</td>
                <td>{$rs_kelas.kompetensi_dasar|upper|default:''}</td>
            </tr>
            <tr class="headrow">
                <th colspan="4">Penilaian</th>
            </tr>
            {$no=1}
            {foreach from=$rs_instrumen item=ins}
            <tr class="input-row">
                <td colspan="3">{$no++}. {$ins.instrumen_deskripsi|default:''}</td>
                <td align="center">
                    <select name="penilaian_value[{$ins.instrumen_kd}]">
                        <option value="0">- Pilih Penilaian -</option>
                        <option value="4">Sangat Baik</option>
                        <option value="3">Baik</option>
                        <option value="2">Cukup</option>
                        <option value="1">Kurang</option>
                    </select>
                </td>
            </tr>
            {/foreach}
            <tr class="submit-box">
                <td colspan="4">
                    {if $rs_kelas.kelas_st eq 'open'}
                    <input type="submit" name="save" value="Simpan" class="edit-button" />
                    <input type="reset" name="save" value="Reset" class="edit-button" />
                    {else}
                    <em>* Kelas sudah ditutup !</em>
                    {/if}
                </td>
            </tr>
        </table>
    </form>
</div>